<extend name="Public:base" />
<block name="main">
	<div class="content">
		<section class="location">
			<i class="iconfont">&#xe60f</i> 位置：<a href="{:U('Index/main')}">管理首页</a> &gt; 链接管理
		</section>
		<ul class="nav-tabs clearfix">
			<li class="active">链接管理</li>
			<li><a href="{:U(add)}">发布链接</a></li>
		</ul>
		<form method="post" name="list">
			<input type="hidden" name="class" id="class" value="{$Think.CONTROLLER_NAME}" />
			<table width="100%" border="0" cellspacing="0" cellpadding="0" class="table table-hover">
				<thead>
					<tr>
						<th width="20"><input type="checkbox" name="chkAll" id="chkAll" onClick="ChkAllClick('id[]','chkAll')" /></th>
						<th width="20">ID</th>
						<th>链接标题</th>
						<th>链接地址</th>
						<th>链接图片</th>
						<th width="50">排序</th>
						<th width="150">操作</th>
					</tr>
				</thead>
				<tbody>
					<volist name="viewList" id="data" empty="暂时没有数据">
					<tr>
						<td><input type="checkbox" name="id[]" id="chkSon{$data.id}" value="{$data.id}" onclick="ChkSonClick('id[]','chkAll')" /></td>
						<td>{$data.id}</td>
						<td><a href="{:U('edit',array('id'=>$data[id]))}">{$data.title}</a></td>
						<td>{$data.url}</td>
						<td><img <if condition="$data.thumb eq ''">src="__IMG__/noLogo.gif"<else />src="__ROOT__{$data.thumb}"</if> alt="{$data.name}" width="88" height="88" /></td>
						<td>{$data.order_id}</td>
						<td><a href="{:U('edit',array('id'=>$data[id]))}">编辑</a> | <a href="javascript:;" data-id="{$data[id]}" data-url="__URL__" class="delete">删除</a></td>
					</tr>
					</volist>
				</tbody>
			</table>
			<button type="submit" class="btn btn-theme" id="sumbit_delete">选中删除</button>
			<div class="pages">{$pages}</div>
		</form>
	</div>
</block>